# coding=utf-8
from django.shortcuts import render, redirect


def view(request):
    try:
        openId = request.session["openid"]
    except KeyError:
        return redirect("/")
    else:
        if openId is None:
            return redirect("/")
        else:
            return render(request, 'wxgroup.html')